import request from '@/utils/request'

export function listDataClassIf(query) {
  return request({
    url: `/label-category`,
    method: 'get',
    params: query
  })
}

export function delLabel(id) {
  return request({
    url: `/label-category/${id}`,
    method: 'get'
  })
}

export function addLabel(data) {
  return request({
    url: `/label-category`,
    method: 'post',
    data
  })
}

export function editLabel(id, data) {
  return request({
    url: `/label-category/${id}`,
    method: 'post',
    data
  })
}


